<% %>
  <div class="menuContainer">
  <div class="menu" id=menu3 style="margin-left:50px;margin-top:181px">
    <div class=menuItem id=menuItem3_1 <%="class=active" if session[:pid] == 0%>>
	    <%=link_to_remote "+" + "All projects".t + " [" + sprintf("%0.2f",@user.managed_projects_total_hours("all")) + "]",
#	                      :update=>'managed_projects',
	                      :loading =>"Element.show('indicator_m')",
	                      :complete=>"Element.hide('indicator_m')",
						  :url=>{:controller=>controller.controller_name,:action=>'managed_project',:id=>0}
	    %>
    </div>
   <%i = 1%>
   <%@user.managed_projects.each do |p|%>
   <%i += 1%>
    <div class=menuItem id=menuItem3_<%=i%> <%="class=active" if session[:pid] == p.id%>>
	    <%=link_to_remote "-" + p.name + " [" + sprintf("%0.2f",p.total_hours("all")) + "]",
#	                      :update=>'managed_projects',
	                      :loading =>"Element.show('indicator_m')",
	                      :complete=>"Element.hide('indicator_m')",
						  :url=>{:controller=>controller.controller_name,:action=>'managed_project',:id=>p.id}
	    %>
    </div>
   <%end%>
   </div>
   </div>
